package com.zj.docker.Repository;

import com.zj.docker.domain.Volumes;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: zj
 * @Date: 2018/12/11 14:32
 * @Description:
 */
public interface VolumesRepository extends JpaRepository<Volumes,Integer> {

    Volumes findOneByName(String name);

    Page<Volumes> findAllByContainerId(String containerId, Pageable pageable);

    List<Volumes> findAllByContainerId(String containerId);

    Page<Volumes> findAll(Pageable pageable);

}
